package router

import (
	"article/api/handler"
	"fmt"
	"github.com/gin-gonic/gin"
)

func Router(c *gin.Engine) {
	WeiBo := c.Group("/api/weibo")   //微博路由组
	Topic := c.Group("/api/topic")   //话题路由组
	Search := c.Group("/api/search") //搜索路由组
	User := c.Group("/api/user")     //用户路由组

	c.POST("/upload", handler.Upload)
	c.POST("/create", handler.WeiBoAdd)
	c.GET("/show", handler.Show)
	c.POST("/delete", handler.Delete)
	fmt.Println(WeiBo, Topic, Search, User)
}
